import angular from 'angular'
import uiRouter from 'angular-ui-router'
import uibs from 'angular-ui-bootstrap'
import go from './compoments/go/'
import directives from './directives/directives'
import goService from './services/go.service'
import configService from './services/config.service'
import routesConfig from './config/routes.config.js'
import goFilter from './filters/go.filter.js'

var app = angular.module('inspinia', [
        uiRouter,                    // Routing
        directives,
        uibs,                 // Ui Bootstrap
        go,
        goService,
        goFilter,
        configService,
        'datePicker'
    ])
    .config(routesConfig)
    .run(['$rootScope', '$state', 'configService', function($rootScope, $state) {
        $state.go('go.checkerboard');
    }])
    
export default app;
